# FROM node:16.11.1 as builder
# MAINTAINER fx 2388908676@qq.com
# ADD . .
# RUN npm config set registry https://registry.npmmirror.com
# RUN npm install --legacy-peer-deps && npm run build

# COPY ./src/rpcServer/TARS.NodeTarsServer.config.conf ./dist/rpcServer

# FROM node:16.11.1 as builder2
# WORKDIR /usr/src/app
# COPY --from=builder dist ./
# COPY --from=builder node_modules ./node_modules/
# COPY --from=builder package.json ./
# COPY --from=builder ormconfig.js ./
# CMD ["node", "main.js"]


FROM node:16.11.1 as builder
MAINTAINER fx 2388908676@qq.com
ADD . .
RUN npm config set registry https://registry.npmmirror.com
RUN npm install --legacy-peer-deps && npm run build

FROM node:16.11.1 as builder2
WORKDIR /usr/src/app
COPY --from=builder dist ./
COPY --from=builder node_modules ./node_modules/
COPY --from=builder package.json ./
COPY --from=builder ormconfig.js ./
COPY --from=builder src/WW_verify_VEKXQHHDp2W3hS4f.txt ./
CMD ["node", "main.js"]
